package cn.haoxsf.app.common.api.enums;

import lombok.Getter;

/**
 * @program: app
 * @description: 系统异常枚举
 * @author: Ele qvbanfm@qq.com
 * @create: 2020-01-06 13:00
 **/
@Getter
public enum UserExceptionEnum implements IServiceEnum  {
    NOT_USERS(10,"用户名或者密码不正确"),
    PASSWORD_NOT(11,"用户名或者密码不正确"),
    USER_ALREADY_EXISTS(12,"用户已存在"),
    TELEPHONE_PRESENCE(13,"电话存在"),
    OPENID_EXISTS(14,"openid已存在"),
    IS_ACCOUNT_LOCKED(15,"用户已被锁定"),
    NOT_STARTED(16,"未开工"),
    UNBOUND_USER(17,"未绑定用户")
    ;
    private Integer code;
    private String msg;

    UserExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
